#ifndef ANIMETASK_H
#define ANIMETASK_H

#include <QRunnable>
#include <QtNetwork>
#include <QRegularExpression>
#include <QDomDocument>
#include <QTextStream>
using namespace std;

class AnimeTask : public QRunnable
{

private:
    QString fiche;
    QString url_image;
    QRegularExpression *parsing_anime;
    QRegularExpression *parsing_anime_infos;
    QRegularExpression *parsing_episodes;
    QRegularExpression *parsing_bonus;
    QNetworkProxy proxy;
public:
    explicit AnimeTask();
    AnimeTask(QNetworkProxy const& proxy, QString const& fiche, const QString &url_image, QRegularExpression *expression, QRegularExpression *infos, QRegularExpression *episodes, QRegularExpression *bonus);
    void run();
    
};

#endif // ANIMETASK_H
